package com.shangguosha.model.enums;

import lombok.Getter;

/**
 * 花色枚举
 */
@Getter
public enum Suit {
    SPADE("♠", "黑桃", true),
    HEART("♥", "红桃", false),
    CLUB("♣", "梅花", true),
    DIAMOND("♦", "方片", false);
    
    private final String symbol;
    private final String name;
    private final boolean isBlack;
    
    Suit(String symbol, String name, boolean isBlack) {
        this.symbol = symbol;
        this.name = name;
        this.isBlack = isBlack;
    }
    
    public boolean isRed() {
        return !isBlack;
    }
    
    @Override
    public String toString() {
        return symbol;
    }
}